package me.zhengjie.modules.equipment.service;

import me.zhengjie.modules.equipment.domain.TSparepart;
import me.zhengjie.modules.equipment.domain.TSparepartRetrieval;
import me.zhengjie.modules.equipment.service.dto.TSparepartRetrievalDTO;
import me.zhengjie.modules.equipment.service.dto.TSparepartRetrievalQueryCriteria;
import org.springframework.cache.annotation.CacheConfig;
import org.springframework.cache.annotation.CacheEvict;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.data.domain.Pageable;

/**
* @author jie
* @date 2019-11-16
*/
public interface TSparepartRetrievalService {

    /**
    * queryAll 分页
    * @param criteria
    * @param pageable
    * @return
    */
    Object queryAll(TSparepartRetrievalQueryCriteria criteria, Pageable pageable);

    /**
    * queryAll 不分页
    * @param criteria
    * @return
    */
    public Object queryAll(TSparepartRetrievalQueryCriteria criteria);

    /**
     * findById
     * @param id
     * @return
     */
    TSparepartRetrievalDTO findById(Integer id);

    /**
     * create
     * @param resources
     * @return
     */
    TSparepartRetrievalDTO create(TSparepartRetrieval resources);

    /**
     * update
     * @param resources
     */
    void update(TSparepartRetrieval resources);

    /**
     * delete
     * @param id
     */
    void delete(Integer id);

    /**
     * log
     * @param resources
     */
    TSparepartRetrievalDTO log(TSparepartRetrieval resources);
}